package com.motorwaymanage.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.motorwaymanage.beans.ApplyInfo;

public interface IApplyInfoBiz {
	//查询申请信息
	public List<ApplyInfo> selectApplyInfo(@Param("mid")int mid);
	
	//添加申请
	public int addApplyInfo(ApplyInfo ai);
	
	//修改维护状态
	public int updateAstatus(int aid);
	
	//修改是否通过
	public int updateAok(int aid);
	
	//否认申请
	public int delApplyInfo(int aid);
	
	/**
	 * 维护审批通过，修改设备状态位维护
	 * @param aid
	 * @param laddr
	 * @return
	 */
	public int modifyAokInfo(int aid, String laddr);

	/**
	 * 设备已维修，修改设备状态为正常
	 * @param aid
	 * @param laddr
	 * @return
	 */
	public int modifyAstInfo(int aid, String laddr);
}
